<include file="Public:header"/>
 <body>
     <?php
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_HOST_M', '127.0.0.1');
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_PORT', '3306');
    ?>
        <nav class="navbar navbar-default" role="navigation">
            <ul class="nav navbar-nav nav-justified">
                <li class="cat-item nav-system-home active"><a href="/">安装协议</a></li>
                <li class="cat-item active"><a href="javascript:;">环境检测</a></li>
                <li class="cat-item active"><a href="javascript:;">创建数据库</a></li>
                <li class="cat-item"><a href="javascript:;">安装</a></li>
                <li class="cat-item"><a href="javascript:;">完成</a></li>
            </ul>
        </nav>
     <form action="__SELF__" method="post" target="_self">
<div class="panel panel-success">
            <div class="panel-heading">ClmaoCMS创建数据库</div>
            <div class="panel-body">
                <h4 class="text-primary">数据库连接信息</h4>
                  <div class="input-group">
                    <span class="input-group-addon">数据库类型</span>
                    <input type="text"  name="db[]" value="mysql" readonly="readonly" class="form-control" placeholder="数据库类型">
                    <span disabled="true"  class="input-group-addon fix-border fix-padding"></span>
                  </div>
                
                  <div class="input-group">
                    <span class="input-group-addon">数据库服务器IP</span>
                    <input type="text"  name="db[]" value="<defined name='SAE_MYSQL_HOST_M'>{$Think.const.SAE_MYSQL_HOST_M}<else/>127.0.0.1</defined>" class="form-control" placeholder="数据库服务器IP">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                    
                  <div class="input-group">
                    <span class="input-group-addon">数据库名</span>
                    <input type="text"  name="db[]" value="<defined name='SAE_MYSQL_DB'>{$Think.const.SAE_MYSQL_DB}</defined>" class="form-control" placeholder="数据库名">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                    
                  <div class="input-group">
                    <span class="input-group-addon">数据库用户名</span>
                    <input type="text"  name="db[]" class="form-control" value="<defined name='SAE_MYSQL_USER'>{$Think.const.SAE_MYSQL_USER}</defined>"placeholder="数据库用户名">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                     
                  <div class="input-group">
                    <span class="input-group-addon">数据库密码</span>
                    <input type="password" name="db[]"value="<defined name='SAE_MYSQL_PASS'>{$Think.const.SAE_MYSQL_PASS}</defined>" class="form-control" placeholder="数据库密码">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                     
                  <div class="input-group">
                    <span class="input-group-addon">数据库端口</span>
                    <input type="text"  name="db[]" value="<defined name='SAE_MYSQL_PORT'>{$Think.const.SAE_MYSQL_PORT}<else/>3306</defined>"class="form-control" placeholder="数据库端口">
                    <span class="input-group-addon fix-border fix-padding"></span>
                </div>
                     
                  <div class="input-group">
                    <span class="input-group-addon">数据表前缀</span>
                    <input type="text"  name="db[]" value="clmao_" class="form-control" placeholder="数据表前缀">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                <hr/>
                <h4 class="text-primary">管理员信息</h4>
                <div class="input-group">
                    <span class="input-group-addon">用户名</span>
                    <input type="text" name="admin[]" class="form-control" placeholder="用户名">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                <div class="input-group">
                    <span class="input-group-addon">密码</span>
                    <input type="password" name="admin[]" class="form-control" placeholder="密码">
                    <span class="input-group-addon fix-border fix-padding"></span>
                  </div>
                <br/>
                <p><a href="{:U('Install/step1')}" class="btn btn-default">上一步</a><a href=""onclick="$('form').submit();return false;" class="btn btn-primary">下一步</a></p>
            </div>
        </div>
     </form>
        
    </body>
</html>